/**
 * @(#) DBInformation.java
 *
 * @author lihg
 * @version V1.0 2013-11-11
 *
 */

package cn.com.dshome.database.jdbc.pojo;

import java.util.Set;

/**
 * 
 * Purpose:数据库信息
 * 
 * @author lihg
 * @see
 * @since
 */

public class DBInformation extends DBBaseInformation {

	private static final long serialVersionUID = 1821545499245969156L;

	//数据库URL地址
	private String url ;

	//用户名
	private String user ;

	//只读？
	private boolean readOnly ;

	//数据库
	private String dbProductName ;

	//数据库版本号
	private String dbProductVersion ;

	//数据库驱动
	private String driverName ;

	//驱动版本号
	private String driverVersion ;

	private String catalog ;

	private String[] schema ;

	//数据库表或视图集合
	private Set<TableInformation> tables ;

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * @return the user
	 */
	public String getUser() {
		return user;
	}

	/**
	 * @param user the user to set
	 */
	public void setUser(String user) {
		this.user = user;
	}

	/**
	 * @return the readOnly
	 */
	public boolean isReadOnly() {
		return readOnly;
	}

	/**
	 * @param readOnly the readOnly to set
	 */
	public void setReadOnly(boolean readOnly) {
		this.readOnly = readOnly;
	}

	/**
	 * @return the dbProductName
	 */
	public String getDbProductName() {
		return dbProductName;
	}

	/**
	 * @param dbProductName the dbProductName to set
	 */
	public void setDbProductName(String dbProductName) {
		this.dbProductName = dbProductName;
	}

	/**
	 * @return the dbProductVersion
	 */
	public String getDbProductVersion() {
		return dbProductVersion;
	}

	/**
	 * @param dbProductVersion the dbProductVersion to set
	 */
	public void setDbProductVersion(String dbProductVersion) {
		this.dbProductVersion = dbProductVersion;
	}

	/**
	 * @return the driverName
	 */
	public String getDriverName() {
		return driverName;
	}

	/**
	 * @param driverName the driverName to set
	 */
	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	/**
	 * @return the driverVersion
	 */
	public String getDriverVersion() {
		return driverVersion;
	}

	/**
	 * @param driverVersion the driverVersion to set
	 */
	public void setDriverVersion(String driverVersion) {
		this.driverVersion = driverVersion;
	}

	/**
	 * @return the tables
	 */
	public Set<TableInformation> getTables() {
		return tables;
	}

	/**
	 * @param tables the tables to set
	 */
	public void setTables(Set<TableInformation> tables) {
		this.tables = tables;
	}


	/**
	 * @return the catalog
	 */
	public String getCatalog() {
		return catalog;
	}

	/**
	 * @param catalog the catalog to set
	 */
	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}

	/**
	 * @return the schema
	 */
	public String[] getSchema() {
		return schema;
	}

	/**
	 * @param schema the schema to set
	 */
	public void setSchema(String[] schema) {
		this.schema = schema;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "DBInformation [url=" + url + ", user=" + user + ", readOnly="
				+ readOnly + ", dbProductName=" + dbProductName
				+ ", dbProductVersion=" + dbProductVersion + ", driverName="
				+ driverName + ", driverVersion=" + driverVersion + "]";
	}
}


/**
 * Revision history
 * -------------------------------------------------------------------------
 * 
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2013-11-11下午1:36:28 lihg 创建版本
 */